About the XML Caching Demo

This example shows a simple case of working with DBWebSource's XMLFileName and XSDSchemaName properties. The first time the application is run you might have to select the DBWebDataSource control, open the object inspector, set the XmlFileName property to "employee.xml", and set the XsdFileName to "employee.xsd". You can browse to this directory to find them.

The XSDSchemaFile defines the column types for the tables and sets up the Master-detail relationship. The XMLFileName contains the data for both. The XMLData will appear in the DBWebGrids both at design time and runtmie. In this case, AutoUpdateCache is set to true, so changes will be saved to the XMLFileName as they are made. For this reason, there is no need for an ApplyButton, and UNDO will never work, as the changes will not be cached.

Setup Information

Running the Demo

  1. Start the IDE.
  2. Open this project.
  3. Complete the steps from the Setup Informationsection above.
  4. Compile the Applicaton (Project Menu, Compile all projects).
  5. Run the application with debugging (F9) or without debugging (Shift+Ctrl+F9)